package cn.zh.system.mapper;

import cn.zh.base.mapper.BaseMapper;
import cn.zh.system.domain.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zh
 * @since 2023-03-09
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    Permission findBySn(String permissionSn);

    void addMiddle(@Param("roleId") Long id, @Param("permissions")List<Long> permissions);

    void deleteByRoleId(Long roleId);

    List<String> findByLogininfoId(Long logininfoId);
}
